package com.erp.purchase.domain;

import com.erp.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * --- 天道酬勤 ---
 *
 * @author hfw
 * @date 2025/9/2
 * @desc
 */
public class PurPurchaser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 采购员ID（自增主键） */
    private Long id;

    /** 采购员姓名，如"鲤鱼" */
    private String name;

    /** 工作状态：0-待安排，1-忙碌中（已接单），2-已下班 */
    private Integer workStatus;

    /** 联系电话，如"13688888888" */
    private String phone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setWorkStatus(Integer workStatus)
    {
        this.workStatus = workStatus;
    }

    public Integer getWorkStatus()
    {
        return workStatus;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("workStatus", getWorkStatus())
                .append("phone", getPhone())
                .append("createTime", getCreateTime())
                .toString();
    }
}